package com.party.weixin.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.party.dto.Response;
import com.party.weixin.service.WeiXinService;


@RestController
@RequestMapping("/weixin")
public class WeiXinController {
	private final Logger logger = LoggerFactory.getLogger(WeiXinController.class);

	@RequestMapping(value="getUserDate")
	public Response getUserDate(String code) 
	{
		JSONObject user=WeiXinService.weixinLogin(code);
		return Response.success(user);
	}

}
